home *** CD-ROM | disk | FTP | other *** search
/ Java Programmer's Toolkit / Java Programmer's Toolkit.iso / gs3.53 / gs_type0.ps < prev    next >
Text File  |  1996-01-10  |  2KB  |  50 lines

  1. %    Copyright (C) 1992, 1995 Aladdin Enterprises.  All rights reserved.
  2. % This file is part of Aladdin Ghostscript.
  3. % Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. % or distributor accepts any responsibility for the consequences of using it,
  5. % or for whether it serves any particular purpose or works at all, unless he
  6. % or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. % License (the "License") for full details.
  8. % Every copy of Aladdin Ghostscript must include a copy of the License,
  9. % normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. % the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. % under certain conditions described in the License.  Among other things, the
  12. % License requires that the copyright notice and this notice be preserved on
  13. % all copies.
  14.  
  15. % Initialization file for composite font facilities.
  16. % When this is run, systemdict is still writable.
  17.  
  18. % Define findencoding.
  19. % (cshow, rootfont, and setcachedevice2 are real operators.)
  20. % .findencoding is defined in gs_init.ps.
  21. /findencoding { .findencoding } odef
  22.  
  23. % Redefine the setcachedevice step of Type1BuildChar
  24. % so that it takes Metrics2 and CDevProc into account.
  25. /setcache_C        % <charname> ? ? ? <wx> <wy> <llx> <lly> <urx> <ury>
  26.             %   setcache_C <charname> ? ? ?
  27.  { currentdict /Metrics2 .knownget
  28.     { 10 index .knownget
  29.        { aload pop
  30.      currentdict /CDevProc .knownget { 14 index exch exec } if
  31.      setcachedevice2
  32.        }
  33.        { setcache_C1
  34.        }
  35.       ifelse
  36.     }
  37.     { setcache_C1
  38.     }
  39.    ifelse
  40.  } bind def
  41. /setcache_C1        % (same as setcache_C)
  42.  { currentdict /CDevProc .knownget
  43.     { 6 index 6 index 0 0 14 index 6 -1 roll exec setcachedevice2 }
  44.     { setcachedevice }
  45.    ifelse
  46.  } bind def
  47.